package com.ruoyi.system.service.impl;

import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MemberSettingOperationLogMapper;
import com.ruoyi.system.domain.MemberSettingOperationLog;
import com.ruoyi.system.service.IMemberSettingOperationLogService;

/**
 * 会员设置操作记录 Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-20
 */
@Service
public class MemberSettingOperationLogServiceImpl implements IMemberSettingOperationLogService
{
    @Autowired
    private MemberSettingOperationLogMapper memberSettingOperationLogMapper;

    /**
     * 通过id查询会员设置操作记录
     *
     * @param id 会员设置操作记录主键
     * @return 会员设置操作记录
     */
    @Override
    public MemberSettingOperationLog selectMemberSettingOperationLogById(Long id)
    {
        return memberSettingOperationLogMapper.selectMemberSettingOperationLogById(id);
    }

    /**
     * 查询会员设置操作记录列表
     *
     * @param operationType,operationStartTime,operationEndTime 会员设置操作记录
     * @return 会员设置操作记录
     */
    @Override
    public List<MemberSettingOperationLog> selectMemberSettingOperationLogListByConditions(String operationType, Date operationStartTime, Date operationEndTime)
    {
        return memberSettingOperationLogMapper.selectMemberSettingOperationLogListByConditions(operationType,operationStartTime,operationEndTime);
    }

    /**
     * 新增会员设置操作记录
     *
     * @param memberSettingOperationLog 会员设置操作记录
     * @return 结果
     */
    @Override
    public int insertMemberSettingOperationLog(MemberSettingOperationLog memberSettingOperationLog)
    {
        return memberSettingOperationLogMapper.insertMemberSettingOperationLog(memberSettingOperationLog);
    }

    /**
     * 修改会员设置操作记录
     *
     * @param memberSettingOperationLog 会员设置操作记录
     * @return 结果
     */
    @Override
    public int updateMemberSettingOperationLog(MemberSettingOperationLog memberSettingOperationLog)
    {
        return memberSettingOperationLogMapper.updateMemberSettingOperationLog(memberSettingOperationLog);
    }

    /**
     * 通过id批量删除会员设置操作记录信息
     *
     * @param ids 需要删除的会员设置操作记录主键
     * @return 结果
     */
    @Override
    public int deleteMemberSettingOperationLogByIds(Long[] ids)
    {
        return memberSettingOperationLogMapper.deleteMemberSettingOperationLogByIds(ids);
    }

    /**
     * 通过id删除会员设置操作记录信息
     *
     * @param id 会员设置操作记录主键
     * @return 结果
     */
    @Override
    public int deleteMemberSettingOperationLogById(Long id)
    {
        return memberSettingOperationLogMapper.deleteMemberSettingOperationLogById(id);
    }
}
